import React, { Component } from 'react'

export default class TableBody extends Component {
    render() {
        const {courseData} = this.props;
        return (
            <tbody>
                {
                    courseData.map((item,index)=>{
                        return(
                            <tr>
                                <td>{item.cid}</td>
                                <td>
                                    <a href={item.href} target="_blank">
                                        <img 
                                            src={`http://qexgb3yqx.hn-bkt.clouddn.com/${item.posterKey}`}
                                            alt={item.courseName}
                                        ></img>
                                    </a>
                                </td>
                                <td>
                                    <a href={item.href} target="_blank">{item.course}</a>
                                </td>
                            </tr>
                        )
                    })
                }
            </tbody>
        )
    }
}
